Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve MemoryStorage read and add dump for verilog-compliant memory files #176

Merged
merged 22 commits into from
Feb 25, 2025

Conversation

mkorbel1
Copy link
Contributor

@mkorbel1 mkorbel1 commented Feb 20, 2025

Description & Motivation

The loadMemHex function on MemoryStorage was overly restrictive. This PR deprecates it and replaces it with loadMemString, which also accepts arguments for radix and bitsPerAddress. Additionally, this PR adds a dumpMemString which also supports radix and bitsPerAddress.

Related Issue(s)

This PR builds upon #175 (though it's not really related), so that one should go in first.

Fix #174

Testing

Added new tests, kept old tests to make sure nothing broke.

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No, just deprecation

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

Yes, docs updated and API docs include more information about how to use the new functionality.

@mkorbel1 mkorbel1 requested a review from desmonddak February 20, 2025 00:31
@mkorbel1 mkorbel1 merged commit 8b798b7 into intel:main Feb 25, 2025
4 checks passed
@mkorbel1 mkorbel1 deleted the dumpmem branch February 25, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a toMemHex capability to MemoryStorage
2 participants